import request from "../utils/request.js";

export function getdata(params) {
    return request({
        url: '/getGlData',
        method: 'GET',
        params
    })
}


// 用户管理接口
export function getUser(params) {
    return request({
        url: "/userList",
        method: "GET",
        params
    })
}
export function editUser(params) {
    return request({
        url: "/editList",
        method: "GET",
        params
    })
}
export function editstate(params) {
    return request({
        url: "/editstate",
        method: "GET",
        params
    })
}
export function deleteUser(params) {
    return request({
        url: "/deleteuser",
        method: "POST",
        data: params
    })
}
export function searchUser(params) {
    console.log(params);
    return request({
        url: "/searchuser",
        method: "GET",
        params
    })
}